-- GENERATED SPELL FOR [Leprithus] --


function spell0_572(pUnit, Event) --@Poison,n/a--
pUnit:FullCastSpellOnTarget(744,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_572', 30000, 1)
end

function spell1_572(pUnit, Event) --@Wither Touch,n/a--
pUnit:FullCastSpellOnTarget(4974,pUnit:GetMainTank ())
pUnit:RegisterEvent('Sorts_572', 638, 1)
end

function Sorts_572(pUnit, Event)
local choix_sorts_572 = math.random(0, 1)
if choix_sorts_572 == 0 then
pUnit:RegisterEvent('spell0_572', 1, 1)
end
if choix_sorts_572 == 1 then
pUnit:RegisterEvent('spell1_572', 1, 1)
end
end

function mob572_Action(pUnit, Event)
pUnit:RegisterEvent('Sorts_572', math.random(1500, 3000), 1)
end

function mob572_Leave(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob572_Kill(pUnit, Event)
--pUnit:RemoveEvents();--
end

function mob572_Die(pUnit, Event)
pUnit:RemoveEvents();
end

RegisterUnitEvent(572, 1, 'mob572_Action')
RegisterUnitEvent(572, 2, 'mob572_Leave')
RegisterUnitEvent(572, 3, 'mob572_Kill')
RegisterUnitEvent(572, 4, 'mob572_Die')
